package com.techstar.ats.codec.resume.codec;

import io.netty.buffer.ByteBuf;
import com.techstar.ats.codec.DateTimeCodec;
import com.techstar.ats.codec.MessageDecoder;
import com.techstar.ats.dxp.resume.ResumeAck;

public interface ResumeAckDecoder<T extends ResumeAck> extends MessageDecoder<T> {
	default void decode(ByteBuf buf, T value) {
		value.begin = DateTimeCodec.INSTANCE.get(buf);
		value.end = DateTimeCodec.INSTANCE.get(buf);
	}
}
